<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    var array=new Array(3,4,5,7,8,10,15);
    var search=7

    var target=false;
    for(var i=0;i<array.length;++i){
        if(array[i]==search){
            target=true;
        }
    }
    alert(target);
</script>